package com.cndw.kungfu.vo;

import com.cndw.kungfu.domain.GoodsMode;
import com.cndw.kungfu.model.Context;
import com.cndw.kungfu.model.player.domain.Favorite;
import com.cndw.kungfu.vo.goodsvo.GoodsVO;

public class FavoriteHFVO {
	
	public int id;
	
	public int sg;
	
	public int addV;
	
	public boolean act;
	
	public GoodsVO goods;
	
	public FavoriteHFVO(){
		
	}
	public FavoriteHFVO(Favorite favorite,boolean act){
		id = favorite.getId();
		sg = favorite.getSg();
		addV = favorite.getAddV();
		this.act = act;
		GoodsMode goodsMode = Context.getGoodsServer().getModeById(favorite.getGoodsId());
		if (goodsMode != null) {
			goods = goodsMode.toGoodsVO();
		}
	}
	
	

}
